package com.qf.nacos.service.impl;

import com.qf.nacos.mapper.ProducerMapper;
import com.qf.nacos.service.ProducerService;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ProducerServiceImpl implements ProducerService {

    @Resource
    private ProducerMapper producerMapper;

    @Override
    @GlobalTransactional
    public void transfer() {
        producerMapper.jiaQian();

    }
}
